<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<title>云商宝实名审核统计</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<!-- 当前页面样式 -->
<link rel="stylesheet" href="<s:url value="/css/common.css"/>" />
<!-- 当前页面样式 END -->
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type="text/javascript">
  	  
    function subForm() {
    	var auditDate = $("#auditDate").val();
    		if (!auditDate) {
    		alert("起始时间范围必须选择!");
    		return false;
    		}
    	return true;
    } 

		function checkSubmit(){
			var  is=subForm();
			if(is){
			
			$("#queryAuditStatistics").attr("action","<%=basePath%>/auditStatistics/queryAuditStatistics.ct");
			$("#queryAuditStatistics").submit();
			}
		}
		
		<%-- function exportSubmit(){
			var  is=subForm();
			if(is){
			$("#queryWindControll").attr("action","<%=basePath%>/changeCheckCount/exportChangeCheck.ct");
			$("#queryWindControll").submit();
			}
	    } --%>
	</script>
</head>
<body>
	<s:form id="queryAuditStatistics" action="" method="post"
		theme="simple">
		<table class="tb">
			<tbody>
				<tr class="tb-line">
					<td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
				</tr>

				<tr class="tb-line">
					<td class="tb-td" colspan="4"><div class="tb-h3">云商宝实名审核统计</div></td>
				</tr>

				<tr class="tb-line">
					<td width="12%" style="min-width: 150px" align="right"
						class="tb-td">
						<div class="tb-h4">日期范围：</div>
					</td>
					<td class="tb-td"><label class="tb-input-normal"> <s:textfield
								id="auditDate" name="searchCondition.auditDate"
								onfocus="WdatePicker({dateFmt:'yyyyMMdd',readOnly:true,wdate:true,errDealMode:0});" />
					</label> <code class="asterisk">*</code></td>
				</tr>
				<tr>
					<td colspan="7" align="center"><span style="color: red"><s:actionerror /></span>
						<span style="color: red;"><s:actionmessage /></span> <span
						style="color: red;"><s:fielderror cssClass="fieldError" /></span>
						<span id="otherError"></span></td>
				</tr>



				<tr class="tb-line">
					<td class="tb-td line-submit" align="right" colspan="4"><label
						class="tb-input-submit"> <input type="button"
							value="查   询" onclick="return checkSubmit();" />
					</label> <%--  <label class="tb-input-submit">
                    <s:if 
					 test="#request.searchRsList != null && #request.searchRsList.size>0">
					   		<input id="szPower" type="button"
							value="导 出" onclick="return exportSubmit();"/>
					   
					</s:if>
					<s:else>
					 	<input id="szPower" disabled="disabled" value="导  出" type="button" /> 
					</s:else>
                </label> --%></td>
				</tr>
				<s:if test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr class="tb-line">
						<td class="tb-td paging" align="left" colspan="4">
						<page:pageCount max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/auditStatistics/queryAuditStatistics.ct?currentPage=" />
						</td>
					</tr>
				</s:if>
			</tbody>

		</table>

		<div class="big-tb">
			<table class="tb" style="width: 100%;">
				<thead>
					<tr class="tb-line">
						<th class="tb-th" colspan="13">云商宝实名审核统计列表</th>
					</tr>
					<tr class="tb-line bg-gray">
						<th class="tb-th">序号</th>
						<th class="tb-th">审核操作员</th>
						<th class="tb-th">领取数量</th>
						<th class="tb-th">通过数量</th>
						<th class="tb-th">驳回数量</th>
						<th class="tb-th">限制数量</th>
						<th class="tb-th">解限数量</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.searchRsList" status="stat" id="asb">
						<tr class="tb-line">
							<td class="tb-td"><s:property value="#stat.count" /></td>
							
							<s:if test="#stat.last">
								   <td class="tb-td">汇总</td>
									<td class="tb-td"><s:property value="#asb.sumTotal" /></td>
									<td class="tb-td"><s:property value="#asb.sumPass" /></td>
									<td class="tb-td"><s:property value="#asb.sumNoPass" /></td>
									<td class="tb-td"><s:property value="#asb.sumLimit" /></td>
									<td class="tb-td"><s:property value="#asb.sumUnLimit" /></td>
							</s:if>
							<s:else>
							<td class="tb-td"><s:property value="#asb.auditor" /></td>
							<td class="tb-td"><s:property value="#asb.total" /></td>
							<td class="tb-td"><s:property value="#asb.passNumber" /></td>
							<td class="tb-td"><s:property value="#asb.noPassNumber" /></td>
							<td class="tb-td"><s:property value="#asb.limitNumber" /></td>
							<td class="tb-td"><s:property value="#asb.unLimitCount" /></td>
							</s:else>	
						</tr>
							</s:iterator>
							
			
							
				</tbody>
			</table>
		</div>
	</s:form>

	<s:if test="#request.msg !=null">
		<script language="javascript">
			alert("${request.msg}");
		</script>
	</s:if>
</body>
</html>